<?php

/*
* Delete a note from the data base. The note be removed from the board
* during the next refresh.
*
* @header project The project to delete notes from
* @header id The id of the note
*
* @return "success"
*         If the note was deleted
* @return "failure"
*         If the note could not be deleted
*/

include_once("connect_to_database.php");

$query = sprintf("delete from %s where id='%s'",
                $_POST['project'],
								$_POST['id']);
$result = mysql_query($query);

if(!$result)
				echo("failure");
else
				echo("success");

?>
